import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import App from './App.vue'
import router from './router'

import 'amfe-flexible';

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus, { size: 'small', zIndex: 3000 })

app.use(createPinia())
app.use(router)

app.mount('#app')


// 引入vant
import { Button, Empty, Icon, Dialog,Toast,Form, Field, CellGroup,Uploader } from 'vant';
// 引入组件样式
import 'vant/lib/index.css';

// 注册使用组件
app.use(Button);
app.use(Empty);
app.use(Icon);
app.use(Dialog);
app.use(Toast);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Uploader);